package com.zwj.controller;

import com.zwj.dto.Result;
import com.zwj.service.CommonService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/common")
public class CommonController {
    private final CommonService commonService;
    public CommonController(CommonService commonService) {
        this.commonService = commonService;
    }
    
    @ApiOperation(value = "状态枚举", notes = "状态枚举")
    @GetMapping("/getStatus")
    public Result getStatus() {
        return commonService.getStatus();
    }
    @ApiOperation(value = "性别枚举", notes = "性别枚举")
    @GetMapping("/getSex")
    public Result getSex() {
        return commonService.getSex();
    }
    @ApiOperation(value = "系统内置角色枚举", notes = "系统内置角色枚举")
    @GetMapping("/getRole")
    public Result getRole() {
        return commonService.getRole();
    }
    @ApiOperation(value = "有效行业", notes = "有效行业")
    @GetMapping("/getIndustry")
    public Result getIndustry() {
        return commonService.getIndustry();
    }
    @ApiOperation(value = "有效类型", notes = "有效类型")
    @GetMapping("/getType")
    public Result getType() {
        return commonService.getType();
    }
}
